package com.zwt.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by zwt on 2018/9/7.
 * 读取git上的配置文件
 */
@RestController
@RefreshScope
@RequestMapping("configClient")
public class ConfigClientController {

    @Value("${profile}")
    private String profile;

    @RequestMapping("getProfile")
    public String getProfile(){
        return profile;
    }


}
